home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: MegaDisc / MegaDisc 36 (1993-11)(MegaDisc Digital Publishing)(AU)(Disk 1 of 2)[m doscopy][WB].zip / MegaDisc 36 (1993-11)(MegaDisc Digital Publishing)(AU)(Disk 1 of 2)[m doscopy][WB].adf / Tutes_&_CLI / Libraries / Libraries
Text File  |  1993-10-22  |  6KB  |  102 lines

  1.  
  2.                     LIBRARIES (by Paul Mclachlan)
  3.  
  4.                           by Paul McLachlan
  5.  
  6.  
  7.     36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 
  8.  
  9.  
  10.         The library is one of the amazing aspects of the Amiga that
  11.     makes it able to do all of its wonderful tricks using much less
  12.     memory, and also one of the reasons Amiga programs are notoriously
  13.     smaller than their IBM equivalents (if, that is, any IBM program
  14.     can be seen as equivalent to an..  no, I won't get into that).
  15.  
  16.         Unfortunately, these library things are a bit of a mystery to
  17.     newcomers.  After all, their LAST computer didn't need them, and
  18.     all of a sudden they're running their latest PD disk, and "You
  19.     need reqtools.library".  I mean, nag nag nag, I don't need it,
  20.     this stupid program needs it, right?  Anyway, what does the
  21.     program need it for?  I can't be all THAT important, can it?  What
  22.     is a library anyway, for I doubt it holds boo...  [nope, too
  23.     easy].
  24.  
  25.         Okay, lets get down to it.  The reason that libraries are so
  26.     important on the Amiga is that they hold 'routines' (parts of
  27.     programs) in them.  A program can use these routines to do lots of
  28.     marvellous things, display pretty file requesters, crunch files
  29.     and load things from disk...  betcha did a double take on that
  30.     one, huh?  Yep, a library is required just to load a file from a
  31.     disk on the Amiga.  Fortunately for you, this library, along with
  32.     a whole host of others is stored in your Amiga's ROM, not on the
  33.     disk, taking up space.  This library is called the dos library and
  34.     needless to say, it's pretty important.
  35.  
  36.         So, the reason a programs needs a library is because the
  37.     program doesn't contain all the necessary code in it to do
  38.     everything it needs to.  Let us take, for example, the arp
  39.     library, which was actually pretty popular until kickstart 2.0
  40.     came along.  Nowadays, all its routines have been included in the
  41.     libraries that are in ROM, so there is no need to have arp on
  42.     disk.  Arp actually stands for 'Amigados Replacement Project',
  43.     which is not really a coup to take over your machine, it just
  44.     sounds like one.  This contained all sorts of wonderful routines
  45.     that saved the programmers from having to re-invent the wheel
  46.     every time they wrote a program.  Little things that Commodore,
  47.     well, forgot.  So, the programmers simply used the library, and
  48.     life was pretty simple, since every second program used the thing,
  49.     then everyone had it on just about every bootable disk they had.
  50.  
  51.         But then, came the library explosion.  (No, not like that, not
  52.     anymore than the population explosion was like that..) All these
  53.     libraries started appearing that either did seemingly useless
  54.     things, or just did something that already have 9 other libraries
  55.     doing it.  The classic case of the latter being the file requester
  56.     libraries, which I just counted 6 of in my libs directory (okay,
  57.     so there wasn't 9).  I mean, Arp had one, there's a reqtools, a
  58.     req...  I mean, even Commodore did one and called it Asl.  Okay,
  59.     so most of these have routines in them other than just a file
  60.     requester, but they all do pretty similar things.
  61.  
  62.         Now, the problem is, one program uses this, another uses that
  63.     and so on, until eventually, some program is going to want to use
  64.     one you've either never heard of, or simply don't have room to
  65.     install on your disk.  I don't know about you, but the libs
  66.     directory on my hard drive is a little over 2.1 meg, and still
  67.     growing steadily.  Of course, It's my fault as much as anyone's,
  68.     since I just install every library I come across since I've got
  69.     this phobia about messages like:  'you need so and so library
  70.     version 912 or higher'.
  71.  
  72.         So, now our only problem is what we can do about it, short of
  73.     installing every library that you see and hoping you never see
  74.     'volume dh0:  is full' or similar.  Well, for the obscure library
  75.     problem (the one that is useless and no-body uses), I'd suggest
  76.     just delete it, or keep it on a disk in the back of your
  77.     collection somewhere, only install it if some silly program wants
  78.     it.  As for the multiple library overkill, I'd go for that clever
  79.     solution that that ingenious fellow, Nico Francois (author of
  80.     powerpacker, and, incidently, a requester library called reqtools)
  81.     thought up.  Its a small (4k) program that is called rtpatch, and
  82.     it plays around in the never never, probably doing things
  83.     Commodore never intended to be done, and 'patched' in reqtools as
  84.     your favourite library.  Now, any program that uses the Req or Arp
  85.     file requesters will use reqtools instead, meaning that you don't
  86.     need those libraries installed, because those programs which use
  87.     them will THINK that they are there, and instead use reqtools.
  88.  
  89.         Libraries really are a good invention, although they can get
  90.     out of hand if managed improperly (gee...  listen to me, "now
  91.     water twice a day") Libraries do make it much easier for
  92.     programmers to use the Amiga, as well as making their programs
  93.     smaller and similar to each other (your file requesters will look
  94.     and act the same way for different programs).  After all,
  95.     libraries are a significant part of what makes the Amiga able to
  96.     multitask, and besides, we're stuck with them.
  97.  
  98.  
  99.  
  100.     36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 -+- 36 
  101.  
  102.